package com.xizi.秋招笔试.cv;

/**
 * @author xizizzz
 * @description: TODO
 * @date 2021-8-30下午 07:24
 */
public class Test1 {
    public static void main(String[] args) {

    }


    public int[] indicators(int[] visitorCounts) {
        int[] res = new int[visitorCounts.length];
        for (int i = 0; i < visitorCounts.length; i++) {
            int index = 0;
            int temp = visitorCounts[i];
            for (int j = i + 1; j < visitorCounts.length; j++) {
                if (visitorCounts[j] >= temp) {
                    index++;
                    res[i] = index;
                    break;
                }
                index++;
            }
        }
        return res;
    }
}
